package com.pan.download4;

import com.pan.crawler.impl5.DirectoryImpl5;
import com.pan.crawler.impl4.PageImpl4;
import com.pan.crawler.impl5.PageImpl5;

import java.util.Arrays;

/**
 * 最新改进版，把几个控制同步的操作 放到同一个类去操作了
 */
public class Application {
    public static void main(String[] args) {

        Driver driver = new Driver(PageImpl5.class,DirectoryImpl5.class,8);
//        Class pageClass,Class directoryClass,int threadCoun
        driver.run("http://www.xheiyan.info/suishendaizhouxingjizhengba/",20);
    }
}
